package com.baomibing.flow.service.impl;

import com.baomibing.flow.dto.SysFlowHistoryInstanceDto;
import com.baomibing.flow.entity.SysFlowHistoryInstance;
import com.baomibing.flow.mapper.SysFlowHistoryInstanceMapper;
import com.baomibing.flow.service.SysFlowHistoryInstanceService;
import com.baomibing.orm.base.MBaseServiceImpl;
import org.springframework.stereotype.Service;

/**
 * SysFlowHistoryInstanceServiceImpl
 *
 * @author frog 2023/10/17 09:52
 * @version 1.0.0
 **/
@Service
public class SysFlowHistoryInstanceServiceImpl extends MBaseServiceImpl<SysFlowHistoryInstanceMapper, SysFlowHistoryInstance, SysFlowHistoryInstanceDto> implements SysFlowHistoryInstanceService {

    @Override
    public void saveHistoryInstance(SysFlowHistoryInstanceDto instance) {
        saveIt(instance);
    }

    @Override
    public void updateHistoryInstance(SysFlowHistoryInstanceDto instance) {
        updateIt(instance);
    }

    @Override
    public SysFlowHistoryInstanceDto getHistoryInstance(String instanceId) {
        return getIt(instanceId);
    }
}
